package hannes.test.untertest;

import java.awt.*;

public class NullDemo extends Frame
{
    Button button1 = new Button("1");
    Button button2 = new Button("2");
    Button button3 = new Button("3");
    Button button4 = new Button("4");
    Button button5 = new Button("5");
    Button button6 = new Button("6");

    public NullDemo( String b )
    {
        super( b);
        setSize( 300,250 );
        setResizable( false );

        setLayout( null );
        button1.setBounds( 23, 23, 99, 27 );
        button2.setBounds( 23, 53, 99, 27 );
        button3.setBounds( 23, 83, 99, 27 );
        button4.setBounds( 23, 113, 99, 27 );
        button5.setBounds( 23, 143, 99, 27 );
        button6.setBounds( 23, 173, 99, 27 );
        add( button1 );
        add( button2 );
        add( button3 );
        add( button4 );
        add( button5 );
        add( button6 );

        setBackground( Color.black );
    }
    public static void main( String [] args )
    {
        NullDemo nl = new NullDemo( "Demo setLayout(NULL)" );
        nl.setVisible( true );
    }
}

